Ecological model of competition